package com.itheima.service;


import com.itheima.domain.Student;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

@Transactional(readOnly = true)
public interface StudentService {

    @Transactional(readOnly = false)
    int save(Student student);

    @Transactional(readOnly = false)
    int update(Student student);

    @Transactional(readOnly = false)
    int delete(Integer id);

    Student findById(Integer id);

    List<Student> findAll();
}
